/*
 * @Author: your name
 * @Date: 2020-07-29 13:51:32
 * @LastEditTime: 2020-07-29 13:57:38
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \dcg-vue-init\src\filter\formatDate.js
 */

import moment from 'moment'

export default {
  formatDate: function(value, format = 'YYYY-MM-DD HH:mm:ss') {
    return moment(value).format(format)
  }
}
